package com.alan.builder;

import com.alan.builder.impl.AioReservationBuilder;
import com.alan.builder.impl.NioReservationBuilder;

/**
 * Created by Alan on 2018/8/22.
 */
public class Test {

    public static void main(String[] args){
        ReservationBuilder reservationBuilder = new AioReservationBuilder();
        Reservation reservation = reservationBuilder.setName("test1").build();
        System.out.println(reservation);

        ReservationBuilder reservationBuilder2 = new NioReservationBuilder();
        Reservation reservation2 = reservationBuilder2.build();
        System.out.println(reservation2);
    }
}
